Add consecutive numbers
Introduction

This functionality makes it easy to populate a field in a table with consecutive numbers by means of a mathematical function (REC) in the field calculator.


Enter row numbers in a field

This new functionality has been introduced to facilitate the task of filling a field in a table with consecutive numbers by means of a mathematical function in the field calculator.

This function is typically used for the "ID" field of a layer's geometries. To access it you need to activate edit mode for the layer and then open the table. Select the field (of type Integer) to which you want to add consecutive numbers and click on the field calculator.

numeros-consecutivos_en.img/calculadora_en.png

Calculator button

Select the numeric type option and then double-click the "rec" command, as shown in the figure below.

numeros-consecutivos_en.img/idconsecutivo_en.png

Rec function (consecutive numbering)

Once the process is complete the selected field in the table will be filled with consecutive numbers, starting with the number "0". Finish editing and save changes if desired.


Cached time 11/22/13 03:33:31 Clear cache and reload